﻿@model viBook.Models.RequireEmailModel

@{
    ViewBag.Title = "Reactivate your account";
}

<h2>Reactivate</h2>

<link href="@Url.Content("~/Content/jquery.realperson.css")" rel="stylesheet" type="text/css" />
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.realperson.js")" type="text/javascript"></script>

<script type="text/javascript">
    $(function () {
        $('#defaultReal.editor-field').realperson({
            length: 6,
            includeNumbers: true,
            hashName: 'realHash'
        });
    });
</script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Enter your email address to receive new activation link</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>
        
        <div class="editor-label">
            @Html.LabelFor(m => m.RealPerson)
        </div>
        <div class="editor-field" id="defaultReal">
            @Html.TextBoxFor(m => m.RealPerson)
            @Html.ValidationMessageFor(m => m.RealPerson)
        </div>
        <p>
            <input type="submit" value="Send" />
        </p>
    </fieldset>
}

